home *** CD-ROM | disk | FTP | other *** search
/ .net 2002 March / DotNetMagazine-Issue107-Coverdisc-NET107-02-03-PCMac.bin / pc / PC Software / free_browsing / DavesQckSearchDbar3-14 / dqsd.exe / searches / ispb.xml < prev    next >
Text File  |  2002-08-30  |  2KB  |  66 lines

  1. <search function="ispb">
  2.   <name>Reverse Business Phone Lookup</name>
  3.   <description>
  4.     Find a business and address in Canada by telephone number.<br/>
  5.     <div class="helpboxDescLabels">Example:</div>
  6.     <table class="helpboxDescTable">
  7.       <tr><td>ispb 902-555-1212</td></tr>
  8.     </table>
  9.   </description>
  10.   <category>People and Places</category>
  11.   <link>http://ypng.infospace.com/canada/ypv3ca/reverse.htm?fromform=revphone</link>
  12.   <contributor>Sarah Sweeney</contributor>
  13.   <email>sarah@designshift.com</email>
  14.   <form name="reversephoneformb"
  15.     action="http://ypng.infospace.com/canada/ypv3ca/redir.htm"
  16.     method="get">
  17.     <input type="hidden" name="searchtype" value="all" />
  18.     <input type="hidden" name="fromform" value="revphone" />
  19.     <input type="hidden" name="ClickTRK" value="REVRP3" />
  20.     <input type="hidden" name="QP" />
  21.     <input type="hidden" name="wqp" />
  22.   </form>
  23.   <script><![CDATA[
  24.     function ispb(q)
  25.     {
  26.       if( nullArgs("ispb",q) )
  27.         return false
  28.  
  29.       if (q == "")
  30.       {  
  31.         openSearchWindow("http://www.infospace.com/canada.widept/reverse_ca.htm");
  32.       }else{
  33.         // detect strings that look like phone numbers
  34.         res = phone_regex.exec(q);
  35.         if (res)
  36.         {
  37.           if (res[1])
  38.           {
  39.             ac=res[1].replace( / /, "", "g");
  40.             pn=res[2].replace( / /, "", "g");
  41.           }
  42.           else
  43.           {
  44.             ac=res[3].replace( / /, "", "g");
  45.             pn=res[4].replace( / /, "", "g");;
  46.           }
  47.         document.reversephoneformb.QP.value=ac + "-" + pn;
  48.         //1=home, blank=work
  49.         document.reversephoneformb.wqp.value="";
  50.         submitForm(reversephoneformb);
  51.         }
  52.         else
  53.         {
  54.         return false;
  55.         }
  56.       }
  57.     }
  58.   ]]></script>
  59.  
  60.   <copyright>
  61.     Copyright (c) 2002 David Bau
  62.     Distributed under the terms of the
  63.     GNU Public License, Version 2 (http://www.gnu.org/copyleft/gpl.txt)
  64.   </copyright>
  65. </search>
  66.